file(GLOB SOURCES *.cc)

link_directories(${WORK_DIR}/owl-eye/lib
                 ${WORK_DIR}/axle/trunk/lib)

if (WIN32)
  set(lib_list devil ilu)
else ()
  set(lib_list IL ILU)
endif (WIN32)

set(target_name test)
add_executable(${target_name} ${SOURCES})

set_target_properties(${target_name} PROPERTIES OUTPUT_NAME_DEBUG "test_d")
set_target_properties(${target_name} PROPERTIES OUTPUT_NAME_RELEASE "test")
set(libs ${lib_list} optimized owl_eye optimized axle debug owl_eye_d debug axle_d)
target_link_libraries(${target_name} ${libs})

message(STATUS "lib_list=${lib_list}")
